package com.hsd.netty.server.common;

import org.msgpack.annotation.Index;
import org.msgpack.annotation.Message;

/**
 * @author s.he
 * on 2020/6/1
 */
@Message
public class NettyHeader {
    @Index(0)
    private int  crcCode = 0xabef0101;

    @Index(1)
    private long sessionId;

    @Index(2)
    private String requestNumber;

    @Index(3)
    private byte type;

    @Index(4)
    private Integer statusCode;


    public int getCrcCode() {
        return crcCode;
    }

    public void setCrcCode(int crcCode) {
        this.crcCode = crcCode;
    }


    public long getSessionId() {
        return sessionId;
    }

    public void setSessionId(long sessionId) {
        this.sessionId = sessionId;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getRequestNumber() {
        return requestNumber;
    }

    public void setRequestNumber(String requestNumber) {
        this.requestNumber = requestNumber;
    }
}
